package cn.tqfeiyang.springplus.warehouse.entity;

import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.io.Serializable;

/**
 * 供应商实体类
 *
 * @author tqfeiyang
 * @since 2024-08-01
 */
@Data
@TableName("base_supplier")
public class SupplierEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 供应商ID
     */
    @TableId(value = "_id", type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 供应商名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 所在城市
     */
    @TableField(value = "city")
    private String city;

    /**
     * 详细地址
     */
    @TableField(value = "address")
    private String address;

    /**
     * 负责人
     */
    @TableField(value = "manager")
    private String manager;

    /**
     * 电话
     */
    @TableField(value = "phone")
    private String phone;

    /**
     * 邮件
     */
    @TableField(value = "email")
    private String email;

    /**
     * 版本号
     */
    @TableField(value = "version", fill = FieldFill.INSERT)
    @Version
    private Integer version;

    /**
     * 删除标识
     */
    @TableField(value = "deleted", fill = FieldFill.INSERT)
    @TableLogic
    private Boolean deleted;

    /**
     * 创建人ID
     */
    @TableField(value = "create_id", fill = FieldFill.INSERT)
    private Long createId;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 修改人ID
     */
    @TableField(value = "update_id", fill = FieldFill.INSERT_UPDATE)
    private Long updateId;

    /**
     * 创建时间
     */
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}